package com.ty.game.controller;

import com.ty.game.dao.LogT2Dao;
import com.ty.game.entity.LogT2;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (LogT2)表控制层
 *
 * @author Troy.Chen(失足程序员, 15388152619)
 * @since 2021-08-20 15:42:39
 */
@RestController
@RequestMapping("logT2")
public class LogT2Controller {
    /**
     * 服务对象
     */
    @Resource
    private LogT2Dao logT2Service;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public LogT2 selectOne(Integer id) {
        return this.logT2Service.queryById(id);
    }

}
